.class public Lcom/instagram/android/fragment/z;
.super Lcom/instagram/e/b/b;
.source "ChangePasswordFragment.java"

# interfaces
.implements Lcom/instagram/a/b;


# instance fields
.field private a:I

.field private b:Landroid/os/Handler;

.field private c:Landroid/widget/EditText;

.field private d:Landroid/widget/EditText;

.field private e:Landroid/widget/EditText;

.field private f:Landroid/widget/Button;

.field private g:Landroid/widget/TextView;

.field private h:Lcom/instagram/android/login/c;

.field private final i:Lcom/instagram/android/fragment/ah;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    .line 48
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    .line 53
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/fragment/z;->b:Landroid/os/Handler;

    .line 63
    new-instance v0, Lcom/instagram/android/fragment/ah;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/fragment/ah;-><init>(Lcom/instagram/android/fragment/z;Lcom/instagram/android/fragment/aa;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/z;->i:Lcom/instagram/android/fragment/ah;

    .line 304
    return-void
.end method

.method private X()V
    .locals 5

    .prologue
    .line 207
    iget-object v0, p0, Lcom/instagram/android/fragment/z;->h:Lcom/instagram/android/login/c;

    invoke-virtual {v0}, Lcom/instagram/android/login/c;->a()Z

    move-result v0

    if-nez v0, :cond_0

    .line 208
    iget-object v0, p0, Lcom/instagram/android/fragment/z;->h:Lcom/instagram/android/login/c;

    invoke-virtual {v0}, Lcom/instagram/android/login/c;->b()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/j;->a(Ljava/lang/CharSequence;)V

    .line 259
    :goto_0
    return-void

    .line 212
    :cond_0
    new-instance v0, Lcom/instagram/android/d/g/d;

    iget-object v1, p0, Lcom/instagram/android/fragment/z;->c:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/fragment/z;->d:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/instagram/android/fragment/z;->e:Landroid/widget/EditText;

    invoke-virtual {v3}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v0, v1, v2, v3}, Lcom/instagram/android/d/g/d;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 217
    new-instance v1, Lcom/instagram/android/fragment/af;

    invoke-direct {v1, p0}, Lcom/instagram/android/fragment/af;-><init>(Lcom/instagram/android/fragment/z;)V

    .line 258
    new-instance v2, Lcom/instagram/android/d/k/q;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/z;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-virtual {p0}, Lcom/instagram/android/fragment/z;->u()Landroid/support/v4/app/aj;

    move-result-object v4

    invoke-direct {v2, v3, v4}, Lcom/instagram/android/d/k/q;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;)V

    invoke-virtual {v2, v0, v1}, Lcom/instagram/android/d/k/q;->a(Lcom/instagram/android/d/k/d;Lcom/instagram/android/d/k/f;)V

    goto :goto_0
.end method

.method private Y()V
    .locals 2

    .prologue
    .line 262
    iget-object v1, p0, Lcom/instagram/android/fragment/z;->f:Landroid/widget/Button;

    iget-object v0, p0, Lcom/instagram/android/fragment/z;->h:Lcom/instagram/android/login/c;

    invoke-virtual {v0}, Lcom/instagram/android/login/c;->c()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/fragment/z;->c:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    invoke-virtual {v1, v0}, Landroid/widget/Button;->setEnabled(Z)V

    .line 266
    return-void

    .line 262
    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method static synthetic a(Lcom/instagram/android/fragment/z;)V
    .locals 0
    .parameter

    .prologue
    .line 48
    invoke-direct {p0}, Lcom/instagram/android/fragment/z;->X()V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/fragment/z;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 48
    invoke-direct {p0, p1}, Lcom/instagram/android/fragment/z;->a(Z)V

    return-void
.end method

.method private a(Z)V
    .locals 1
    .parameter

    .prologue
    .line 269
    iget-object v0, p0, Lcom/instagram/android/fragment/z;->c:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setEnabled(Z)V

    .line 270
    iget-object v0, p0, Lcom/instagram/android/fragment/z;->d:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setEnabled(Z)V

    .line 271
    iget-object v0, p0, Lcom/instagram/android/fragment/z;->e:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setEnabled(Z)V

    .line 272
    return-void
.end method

.method static synthetic b(Lcom/instagram/android/fragment/z;)Lcom/instagram/android/fragment/ah;
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-object v0, p0, Lcom/instagram/android/fragment/z;->i:Lcom/instagram/android/fragment/ah;

    return-object v0
.end method

.method static synthetic c(Lcom/instagram/android/fragment/z;)V
    .locals 0
    .parameter

    .prologue
    .line 48
    invoke-direct {p0}, Lcom/instagram/android/fragment/z;->Y()V

    return-void
.end method

.method static synthetic d(Lcom/instagram/android/fragment/z;)Landroid/widget/Button;
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-object v0, p0, Lcom/instagram/android/fragment/z;->f:Landroid/widget/Button;

    return-object v0
.end method

.method static synthetic e(Lcom/instagram/android/fragment/z;)Landroid/widget/EditText;
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-object v0, p0, Lcom/instagram/android/fragment/z;->d:Landroid/widget/EditText;

    return-object v0
.end method

.method private e(I)V
    .locals 1
    .parameter

    .prologue
    .line 275
    invoke-virtual {p0}, Lcom/instagram/android/fragment/z;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/activity/MainTabActivity;

    invoke-virtual {v0, p1}, Lcom/instagram/android/activity/MainTabActivity;->b(I)V

    .line 276
    return-void
.end method

.method static synthetic f(Lcom/instagram/android/fragment/z;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-object v0, p0, Lcom/instagram/android/fragment/z;->b:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic g(Lcom/instagram/android/fragment/z;)Landroid/widget/TextView;
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-object v0, p0, Lcom/instagram/android/fragment/z;->g:Landroid/widget/TextView;

    return-object v0
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 5
    .parameter
    .parameter
    .parameter

    .prologue
    .line 69
    sget v0, Lcom/facebook/ax;->fragment_change_password:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    .line 70
    sget v0, Lcom/facebook/aw;->current_password:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/instagram/android/fragment/z;->c:Landroid/widget/EditText;

    .line 71
    sget v0, Lcom/facebook/aw;->new_password:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/instagram/android/fragment/z;->d:Landroid/widget/EditText;

    .line 72
    sget v0, Lcom/facebook/aw;->confirm_new_password:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/instagram/android/fragment/z;->e:Landroid/widget/EditText;

    .line 73
    sget v0, Lcom/facebook/aw;->save_button:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/instagram/android/fragment/z;->f:Landroid/widget/Button;

    .line 74
    iget-object v0, p0, Lcom/instagram/android/fragment/z;->f:Landroid/widget/Button;

    new-instance v2, Lcom/instagram/android/fragment/aa;

    invoke-direct {v2, p0}, Lcom/instagram/android/fragment/aa;-><init>(Lcom/instagram/android/fragment/z;)V

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 80
    sget v0, Lcom/facebook/aw;->reset_using_facebook_link:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/instagram/android/fragment/z;->g:Landroid/widget/TextView;

    .line 81
    iget-object v0, p0, Lcom/instagram/android/fragment/z;->g:Landroid/widget/TextView;

    new-instance v2, Lcom/instagram/android/fragment/ab;

    invoke-direct {v2, p0}, Lcom/instagram/android/fragment/ab;-><init>(Lcom/instagram/android/fragment/z;)V

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 90
    new-instance v0, Lcom/instagram/android/login/c;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/z;->l()Landroid/content/res/Resources;

    move-result-object v2

    iget-object v3, p0, Lcom/instagram/android/fragment/z;->d:Landroid/widget/EditText;

    iget-object v4, p0, Lcom/instagram/android/fragment/z;->e:Landroid/widget/EditText;

    invoke-direct {v0, v2, v3, v4}, Lcom/instagram/android/login/c;-><init>(Landroid/content/res/Resources;Landroid/widget/EditText;Landroid/widget/EditText;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/z;->h:Lcom/instagram/android/login/c;

    .line 93
    iget-object v0, p0, Lcom/instagram/android/fragment/z;->h:Lcom/instagram/android/login/c;

    new-instance v2, Lcom/instagram/android/fragment/ac;

    invoke-direct {v2, p0}, Lcom/instagram/android/fragment/ac;-><init>(Lcom/instagram/android/fragment/z;)V

    invoke-virtual {v0, v2}, Lcom/instagram/android/login/c;->a(Lcom/instagram/android/login/i;)V

    .line 100
    iget-object v0, p0, Lcom/instagram/android/fragment/z;->c:Landroid/widget/EditText;

    new-instance v2, Lcom/instagram/android/fragment/ad;

    invoke-direct {v2, p0}, Lcom/instagram/android/fragment/ad;-><init>(Lcom/instagram/android/fragment/z;)V

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 113
    iget-object v0, p0, Lcom/instagram/android/fragment/z;->e:Landroid/widget/EditText;

    new-instance v2, Lcom/instagram/android/fragment/ae;

    invoke-direct {v2, p0}, Lcom/instagram/android/fragment/ae;-><init>(Lcom/instagram/android/fragment/z;)V

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V

    .line 128
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    .line 129
    iget-object v2, p0, Lcom/instagram/android/fragment/z;->c:Landroid/widget/EditText;

    invoke-interface {v0, v2}, Lcom/instagram/b/c;->a(Landroid/widget/TextView;)V

    .line 130
    iget-object v2, p0, Lcom/instagram/android/fragment/z;->d:Landroid/widget/EditText;

    invoke-interface {v0, v2}, Lcom/instagram/b/c;->a(Landroid/widget/TextView;)V

    .line 131
    iget-object v2, p0, Lcom/instagram/android/fragment/z;->e:Landroid/widget/EditText;

    invoke-interface {v0, v2}, Lcom/instagram/b/c;->a(Landroid/widget/TextView;)V

    .line 133
    return-object v1
.end method

.method public a()Lcom/instagram/a/a;
    .locals 1

    .prologue
    .line 280
    new-instance v0, Lcom/instagram/android/fragment/ag;

    invoke-direct {v0, p0}, Lcom/instagram/android/fragment/ag;-><init>(Lcom/instagram/android/fragment/z;)V

    return-object v0
.end method

.method public a(IILandroid/content/Intent;)V
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 196
    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    .line 197
    invoke-static {}, Lcom/instagram/android/g/b;->a()Lcom/facebook/a/b;

    move-result-object v0

    .line 200
    iget-object v1, p0, Lcom/instagram/android/fragment/z;->i:Lcom/instagram/android/fragment/ah;

    invoke-virtual {v0, v1}, Lcom/facebook/a/b;->a(Lcom/facebook/a/e;)V

    .line 201
    invoke-virtual {v0, p1, p2, p3}, Lcom/facebook/a/b;->a(IILandroid/content/Intent;)V

    .line 203
    :cond_0
    invoke-super {p0, p1, p2, p3}, Lcom/instagram/e/b/b;->a(IILandroid/content/Intent;)V

    .line 204
    return-void
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 356
    const-string v0, "change_password"

    return-object v0
.end method

.method public e_()V
    .locals 1

    .prologue
    .line 182
    invoke-super {p0}, Lcom/instagram/e/b/b;->e_()V

    .line 183
    const/16 v0, 0x8

    invoke-direct {p0, v0}, Lcom/instagram/android/fragment/z;->e(I)V

    .line 184
    return-void
.end method

.method public f_()V
    .locals 1

    .prologue
    .line 188
    invoke-super {p0}, Lcom/instagram/e/b/b;->f_()V

    .line 191
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/instagram/android/fragment/z;->e(I)V

    .line 192
    return-void
.end method

.method public g_()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 138
    invoke-super {p0}, Lcom/instagram/e/b/b;->g_()V

    .line 140
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    .line 141
    iget-object v1, p0, Lcom/instagram/android/fragment/z;->c:Landroid/widget/EditText;

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->b(Landroid/widget/TextView;)V

    .line 142
    iget-object v1, p0, Lcom/instagram/android/fragment/z;->d:Landroid/widget/EditText;

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->b(Landroid/widget/TextView;)V

    .line 143
    iget-object v1, p0, Lcom/instagram/android/fragment/z;->e:Landroid/widget/EditText;

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->b(Landroid/widget/TextView;)V

    .line 145
    iget-object v0, p0, Lcom/instagram/android/fragment/z;->h:Lcom/instagram/android/login/c;

    invoke-virtual {v0, v2}, Lcom/instagram/android/login/c;->a(Lcom/instagram/android/login/i;)V

    .line 146
    iput-object v2, p0, Lcom/instagram/android/fragment/z;->h:Lcom/instagram/android/login/c;

    .line 147
    iput-object v2, p0, Lcom/instagram/android/fragment/z;->c:Landroid/widget/EditText;

    .line 148
    iput-object v2, p0, Lcom/instagram/android/fragment/z;->d:Landroid/widget/EditText;

    .line 149
    iput-object v2, p0, Lcom/instagram/android/fragment/z;->e:Landroid/widget/EditText;

    .line 150
    iput-object v2, p0, Lcom/instagram/android/fragment/z;->f:Landroid/widget/Button;

    .line 151
    return-void
.end method

.method public w()V
    .locals 2

    .prologue
    .line 155
    invoke-super {p0}, Lcom/instagram/e/b/b;->w()V

    .line 157
    iget-object v0, p0, Lcom/instagram/android/fragment/z;->f:Landroid/widget/Button;

    iget-object v1, p0, Lcom/instagram/android/fragment/z;->h:Lcom/instagram/android/login/c;

    invoke-virtual {v1}, Lcom/instagram/android/login/c;->c()Z

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setEnabled(Z)V

    .line 159
    invoke-virtual {p0}, Lcom/instagram/android/fragment/z;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getRequestedOrientation()I

    move-result v0

    iput v0, p0, Lcom/instagram/android/fragment/z;->a:I

    .line 160
    invoke-virtual {p0}, Lcom/instagram/android/fragment/z;->j()Landroid/support/v4/app/j;

    move-result-object v0

    const/4 v1, -0x1

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->setRequestedOrientation(I)V

    .line 163
    invoke-virtual {p0}, Lcom/instagram/android/fragment/z;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x10

    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    .line 165
    return-void
.end method

.method public x()V
    .locals 2

    .prologue
    .line 169
    invoke-super {p0}, Lcom/instagram/e/b/b;->x()V

    .line 171
    invoke-virtual {p0}, Lcom/instagram/android/fragment/z;->j()Landroid/support/v4/app/j;

    move-result-object v0

    iget v1, p0, Lcom/instagram/android/fragment/z;->a:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->setRequestedOrientation(I)V

    .line 174
    invoke-virtual {p0}, Lcom/instagram/android/fragment/z;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x30

    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    .line 177
    invoke-virtual {p0}, Lcom/instagram/android/fragment/z;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/fragment/z;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/app/j;->getWindow()Landroid/view/Window;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/n/k;->a(Landroid/content/Context;Landroid/view/View;)V

    .line 178
    return-void
.end method
